package com.aaa.entity.cart_order.kwc;

import com.aaa.entity.cart_order.zxh.Product;

/**
 * fileName:CartList
 * description:
 * author:xxx
 * createTime:2020/2/14 13:28
 * version:1.0.0
 */
public class CartList {
    //主键
    private Long id;
    private Long  member_id;;
    private long shop_id;
    //购买数量
    private int quantity;
    private String product_pic;
    private String product_name;
    private double price;
    private int  delete_status;
    //商品详情
    private Product product;
    //小计
    private Double subtotal;

    //判断是否选择
    private boolean state = false;

    public int getDelete_status() {
        return delete_status;
    }

    public void setDelete_status(int delete_status) {
        this.delete_status = delete_status;
    }

    public Long getMember_id() {
        return member_id;
    }

    public void setMember_id(Long member_id) {
        this.member_id = member_id;
    }


    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getShop_id() {
        return shop_id;
    }

    public void setShop_id(long shop_id) {
        this.shop_id = shop_id;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getProduct_pic() {
        return product_pic;
    }

    public void setProduct_pic(String product_pic) {
        this.product_pic = product_pic;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }



    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Double getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(Double subtotal) {
        this.subtotal = subtotal;
    }



    @Override
    public String toString() {
        return "CartList{" +
                "id=" + id +
                ", shop_id=" + shop_id +
                ", quantity=" + quantity +
                ", product_pic='" + product_pic + '\'' +
                ", product_name='" + product_name + '\'' +
                ", price=" + price +

                ", product=" + product +
                ", subtotal=" + subtotal +
                '}';
    }
}
